package com.zhiliao.module.web.cms.service;

import com.zhiliao.common.base.BaseService;
import com.zhiliao.mybatis.model.TCmsCategory;

import java.util.List;

/**
 * Description:
 *
 * @author qirong
 * @create 2018-10-26
 */
public interface CategoryService extends BaseService<TCmsCategory,Long>{

    /**
     * findCategoryListByPid
     * @param pid
     * @return
     */
    List<TCmsCategory> findCategoryListByPid(Long pid);

    /**
     * findCategoryListBySiteId
     * @param siteId
     * @return
     */
    List<TCmsCategory> findCategoryListBySiteId(Integer siteId);

    /**
     * findCategoryListByPid
     * @param pid
     * @param siteId
     * @return
     */
    List<TCmsCategory> findCategoryListByPid(Long pid,Integer siteId);

    /**
     * findCategoryListByPidAndIsNav
     * @param pid
     * @param siteId
     * @param isNav
     * @return
     */
    List<TCmsCategory> findCategoryListByPidAndIsNav(Long pid,Integer siteId,Boolean isNav);

    /**
     * findByAlias
     * @param alias
     * @return
     */
    TCmsCategory findByAlias(String alias);

    /**
     * findPageSize
     * @param categoryId
     * @return
     */
    Integer findPageSize(Long categoryId);

    /**
     * findfindByAliasAndSiteId
     * @param alias
     * @param siteId
     * @return
     */
    TCmsCategory findfindByAliasAndSiteId(String alias,Integer siteId);

    /**
     * allCount
     * @return
     */
    Integer allCount();
}
